<?php
namespace Home\Api;
use Think\Model;
class Bangbanggou_webController extends Controller {


	public function __construct()
	{
		parent::__construct();
	}
	
	

	/**
	 * @param array $arr 失败结果返回
	 * @author xun
	 * @return string
	 */
	public function ajaxFail($arr, $code=1, $status='failure')
	{
		$result['code'] = $code;
		$result['status'] = $status;
		$result['data'] = $arr;
		if (isset($_GET['debug_ajax'])) {
			print_r($result);
			exit;
		}
		$this->ajaxReturn($result);
	}
}